package com.wiretap.dao;

import java.util.List;

import com.wiretap.po.Contact;
import com.wiretap.util.Pager;

public interface ContactDao {
	// 添加联系人
	void addContact(Contact contact) throws Exception;

	// 获取所有联系人
	Pager<Contact> getAllContactByPhone(String ownerPhone, int currentPage, int pageSize) throws Exception;

	Contact getContact(String ownerPhone, String number) throws Exception;

	void addContact(String ownerPhone, List<Contact> contacts) throws Exception;

	int deleteContactByOwnerPhone(String ownerPhone) throws Exception;
}
